<!DOCTYPE html>
<html>

<head>
<title>添加代理</title>
<meta http-equiv="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="renderer" content="webkit">

<%include("/common/include.html"){}%>
<style>
	.required{
		display:inline-block;
		width: 30%;
	}
	.requiredx{
		display:inline-block;
		width: 89%;
	}
	label{
		text-align:right;
		width:70px;
		display:inline-block;
	}
</style>
<style type="text/css">
</style>
</head>

<body>
	<div class="easyui-panel" style="width: 100%; padding: 8% 3%; border-width: 0px;">
		<div  style="margin:auto;width:100%;">
			<form id="addProduct" method="post" class="form">
				<input  id="ids" type="hidden" name="ids" value="${ids}">
<!-- 				<input  id="ids" type="text" name="ids" value="${bz}"> -->
				<label class="label-top" style="margin-right:3%;font-weight:bold ">备&nbsp;&nbsp;&nbsp;注:</label>
				<%if(yz==1){%>
            		<input id="bz" class="easyui-textbox" style="width:80%;height:150px" data-options="multiline:true" value="${bz}"  >
				<%}else{%>
					<input id="bz" class="easyui-textbox" style="width:80%;height:150px" data-options="multiline:true" value="${bz}" readonly="readonly" >
				<%}%>
			</form>
			
		</div>
	</div>
	<div>
		
			
		
	</div>
	<script type="text/javascript">
			var submitForm = function($dialog, $grid, $tree, $pjq) {
				var bz=$("#bz").val();
				var ids=$("#ids").val();
				var data={"bz":bz,"ids":ids};
				if($grid!=null)
				{
					var $form = $("#addProduct");
					$.post('${cxt! }/beingServed/saveBz', data,function(result) {
						if(result.status == "200"){
							 $.slideMsg("保存成功", parent.$);
							 $dialog.dialog('destroy');
						}else{
						 $.slideMsg("保存失败", parent.$);
						}
					}, "json");
				}else
				{
					$dialog.dialog('destroy');
				}
			};
	</script>
</body>
</html>